#!/bin/bash
if [ -f "/mysrc/package.json" ]; then 
    npm install 
    echo "#!/bin/bash" > "/opt/s"
    echo "cd /mysrc/ " >> "/opt/s"
    echo "npm run dev" >> "/opt/s"
    npm run dev
fi